package com.ljwm.seckill.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Locale;


/**
 * Created by yuzhou on 2017/8/7.
 */
@Controller
@RequestMapping("/")
public class CommonController {

  private static final Logger _log = LoggerFactory.getLogger(CommonController.class);

  @GetMapping("/")
  public String index(Locale locale, Model model) {
    _log.info("The client locale is {}.", locale);

    return "index";
  }
}
